import 'package:demo/pages/launch/launch_view.dart';
import 'package:demo/pages/log/log_view.dart';
import 'package:demo/pages/test/test_ctrl.dart';
import 'package:demo/pages/test/test_view.dart';
import 'package:get/get.dart';

import 'route_names.dart';

class RoutePages {
  // 列表
  static List<GetPage> list = [
    GetPage(name: RouteNames.launch, page: () => LaunchPage()),
    GetPage(
      name: RouteNames.test,
      page: () => TestPage(),
      binding: BindingsBuilder(() {
        // 建议在 GetPage 通过 binding绑定
        Get.create(() => TestCtrl());
      }),
    ),
    GetPage(name: RouteNames.log, page: () => LogPage()),
  ];
}
